<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<head>
	<title>example</title>
	</head>
<script type="text/javascript" src="js/prototype.js"></script>
	<body>
<form id="test">
姓名：<input/>
</form>

添加<input id="target" type="text">字段<input type="submit" value="执行" onclick="$('test').innerHTML+=$('target').value+':<input/>';"/>

	</body>
</html>
